package com.houhanzhi.api;

public class WechatPayApi {

    /**
     * 微信支付主机地址
     */
    public static final String HOST = "https://api.mch.weixin.qq.com";


    /**
     * Native下单
     */
    public static final String NATIVE_ORDER = HOST+"/v3/pay/transactions/native";


    /**
     * Native订单查询，根据商户订单号查询，out_trade_no
     */
    public static final String NATIVE_QUERY = HOST+"/v3/pay/transactions/out-trade-no/%s?mchid=%s";

    /**
     * 关闭订单,根据 out_trade_no
     */
    public static final String NATIVE_CLOSE_ORDER = HOST+"/v3/pay/transactions/out-trade-no/%s/close";

    /**
     * 申请退款
     */
    public static final String NATIVE_REFUNDS_ORDER = HOST+"/v3/refund/domestic/refunds";

    /**
     * 退款状态查询
     */
    public static final String NATIVE_REFUNDS_QUERY = HOST+"/v3/refund/domestic/refunds/%s";
}
